﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;
using Wedo.Recognition.Domain;
using Wedo.Recognition.Repository; 

namespace Wedo.Recognition.Service
{
    public class Container_Config
    {
        public static IUnityContainer GetContainer_Config() {
            IUnityContainer container = new UnityContainer();
            container.LoadConfiguration("default");
            return container;
        }

        public static IUnitWork GetIUnitWork()
        {
            var container = GetContainer_Config();
            return container.Resolve<IUnitWork>();
        }
    }
}